<template>
    <div>
        <el-input class="inp"  v-model="keyword" placeholder="请输入内容"></el-input> <el-button @click="search" type="primary">搜索</el-button>
    </div>
</template>

<script>
    export default {
        props:{
            
        },
        data() {
            return {
                keyword:''
            }
        },
        methods:{
            search(){
                this.$emit('search',this.keyword)
            }
        }
    }
</script>

<style lang="scss" scoped>
.inp{
    width: 300px;
}
</style>